home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / fixes / fix010 < prev    next >
Internet Message Format  |  1995-02-13  |  3KB

  1. From theseas!fs.Princeton.EDU!cek Thu, 1 Jul 93 08:24:33 EET
  2. Received: by kriton.UUCP (V1.16/Amiga)
  3.     id AA00000; Thu, 1 Jul 93 08:24:33 EET
  4. Received: by theseas.ntua.gr with UUCP; Thu, 1 Jul 93 00:46:12 +0300
  5. Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
  6.     id AA05912 (5.65c/FORTH-ICS-3.0-MHS-7.0); Wed, 30 Jun 1993 23:35:51 +0300
  7. Received: by mcsun.EU.net with UUCP
  8.     id AA17351 (5.65b/CWI-%I%); Wed, 30 Jun 1993 22:35:30 +0200
  9. Received: from Princeton.EDU by relay1.UU.NET with SMTP 
  10.     (5.61/UUNET-internet-primary) id AA17461; Mon, 28 Jun 93 07:36:27 -0400
  11. Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.96/princeton)
  12.     id AA06542; Mon, 28 Jun 93 07:35:09 -0400
  13. Received: by fs.Princeton.EDU (4.1/1.105)
  14.     id AA18872; Mon, 28 Jun 93 07:35:07 EDT
  15. Received: from faui45.informatik.uni-erlangen.de ([131.188.34.45]) by fs.Princeton.EDU (4.1/1.105)
  16.     id AA18785; Mon, 28 Jun 93 07:34:10 EDT
  17. Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
  18.     id AA11826 (5.65c-5/7.3u-FAU); Mon, 28 Jun 1993 13:34:03 +0200
  19. Received: by immd4.informatik.uni-erlangen.de;
  20.     id AA03497 (5.65c-5/7.3m-FAU); Mon, 28 Jun 1993 13:34:01 +0200
  21. Message-Id: <199306281134.AA03497@faui43.informatik.uni-erlangen.de>
  22. Date: Mon, 28 Jun 93 13:34:01 METDST
  23. X-Mailer: ELM [version 2.3 PL11]
  24. Errors-To: Princeton.EDU!cek
  25. Remailed-Date: Mon Jun 28 07:34:26 EDT 1993
  26. From: "Michael Schroeder (Inf4 - hiwi)" <immd4.informatik.uni-erlangen.de!mlschroe>
  27. To: "Rayshade Distribution List" <cs.Princeton.EDU!rayshade-users>
  28. Subject: sphere...
  29.  
  30.  
  31. Uuuuugh, of cause the division by the radius of the sphere is
  32. now obsolete. The patch should read:
  33.  
  34. *** sphere.c.orig    Sun Jun 27 21:53:08 1993
  35. --- sphere.c    Mon Jun 28 13:32:55 1993
  36. ***************
  37. *** 135,143 ****
  38.   Sphere *sphere;
  39.   Vector *pos, *nrm, *gnrm;
  40.   {
  41. !     nrm->x = (pos->x - sphere->x) / sphere->r;
  42. !     nrm->y = (pos->y - sphere->y) / sphere->r;
  43. !     nrm->z = (pos->z - sphere->z) / sphere->r;
  44.       *gnrm = *nrm;
  45.       return FALSE;
  46.   }
  47. --- 135,148 ----
  48.   Sphere *sphere;
  49.   Vector *pos, *nrm, *gnrm;
  50.   {
  51. !     nrm->x = pos->x - sphere->x;
  52. !     nrm->y = pos->y - sphere->y;
  53. !     nrm->z = pos->z - sphere->z;
  54. !     /*
  55. !      * We cannot divide by sphere->r to normalize the vector 
  56. !      * because of roundoff errors in the intersection calculation.
  57. !      */
  58. !     VecNormalize(nrm);
  59.       *gnrm = *nrm;
  60.       return FALSE;
  61.   }
  62.  
  63. Michael.
  64.  
  65. ---------------------------------------------------------------
  66. Michael Schroeder    mlschroe@faui43.informatik.uni-erlangen.de
  67. main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
  68.  
  69. ----------
  70. Administrivia: rayshade-request@cs.princeton.edu
  71. Mailing list: rayshade-users@cs.princeton.edu
  72.  
  73.